Method and apparatus for spreading and despreading data in a spread spectrum communication system

ABSTRACT

A current mode of operation is provided to a Walsh spreader ( 203 ), and based on the current mode of operation, the Walsh spreader ( 203 ) either varies a Walsh code at a symbol rate, or holds the Walsh code constant. During multi-carrier transmission a first symbol within a data stream ( 210 ) is spread with a first Walsh code, while symbols immediately preceding and following the first symbol are spread by a another, differing Walsh code. The sequence of Walsh codes exiting the spreader ( 201 ) is further scrambled by a pair of Pseudo-Noise (PN) codes ( 224 ) that are held constant for three Walsh code periods during multi-carrier transmission, and are not held constant during direct-spread transmission.

RELATED INVENTIONS

This application is a division of MULTI-MODE TRANSMITTER AND RECEIVER, having Ser. No. 09/200,397 filed on Nov. 24, 1998 now U.S. Pat. No. 6,088,399 and assigned to the assignee of the present invention.

FIELD OF THE INVENTION

The present invention relates generally to communication systems and, in particular, to a method and apparatus for spreading and despreading data in a spread-spectrum communication system.

BACKGROUND OF THE INVENTION

Next generation spread-spectrum communication systems incorporate both a direct-spread and a multi-carrier option for transmission. One such communication system currently being developed with direct-spread and multicarrier capabilities is the next generation Code-Division Multiple-Access (CDMA) cellular communication system, more commonly referred to as cdma2000, or IS95C.

During direct-spread transmission the communication systems transmit information over the bandwidth of interest by using a single short code. Unlike direct-spread transmission, multi-carrier transmission transmits information over the bandwidth of interest by using multiple short codes. For multi-carrier transmission, each portion of the user's data that is spread with a single short code is transmitted within its own frequency band. Such a multi-carrier transmitter and receiver is shown in FIG. 1. As shown, data stream 101 enters demultiplexer 103, where it is sent to three separate spreaders 105. Each spreading circuitry 105 utilizes its own, unique Walsh code as well as a common pseudo-noise (PN) code When spreading data stream 101. After low-pass filtering and digital-to-analog conversion, each data path is mixed to a separate frequency by mixers 107. The output of mixers 107 is a portion of data stream 101, mixed to a unique frequency. After bandpass filtering, the output from mixers 107 is summed by summer 109 and transmitted as signal 121 comprising three separate frequency bands, each frequency band utilizing a unique short code. During reception, the three separate frequency bands 121 are received by receiver 120 and downconverted to a single frequency by mixers 125. After filtering and analog-to-digital conversion, the three signal paths are despread utilizing three separate despreaders (not shown), each using a similar PN code and a unique Walsh code.

The use of multiple spreaders 105 in multi-mode transmitters, makes multi-mode devices very expensive. Therefore a need exists for a method and apparatus for spreading and despreading data in a communication system utilizing both direct-spread and multi-carrier transmission, that is less costly than prior-art multi-mode transmitters and receivers.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a prior-art transmitter and receiver that utilizes a multi-carrier form of transmission.

FIG. 2 is a block diagram of a multi-mode transmitter front end in accordance with the preferred embodiment of the present invention.

FIG. 3 is a block diagram of a multi-mode transmitter back end in accordance with the preferred embodiment of the present invention.

FIG. 4 is a block diagram of a multi-mode receiver front end in accordance with the preferred embodiment of the present invention.

FIG. 5 is a block diagram of a multi-mode receiver back end in accordance with the preferred embodiment of the present invention.

FIG. 6 is a flow chart illustrating operation of the transmitter of FIG. 2 and FIG. 3 in accordance with the preferred embodiment of the present invention.

FIG. 7 is a flow chart illustrating operation of the receiver of FIG. 4 and FIG. 5 in accordance with the preferred embodiment of the present invention.

DETAILED DESCRIPTION OF THE DRAWINGS

To address the need for a method and apparatus for spreading and despreading data in a communication system a current mode of operation is provided to a Walsh spreader, and based on the current mode of operation, the Walsh spreader either varies a Walsh code at a symbol rate, or holds the Walsh code constant. During multi-carrier transmission a first symbol within a data stream is spread with a first Walsh code, while symbols immediately preceding and following the first symbol are spread by a another, differing Walsh code. The sequence of Walsh codes exiting the spreader is further scrambled by a pair of PN codes that are held constant for three Walsh code periods during multi-carrier transmission, and are not held constant during direct-spread transmission. Utilizing Walsh codes that vary at the symbol rate, based on a transmission mode and a PN code that is held constant for multiple Walsh codes, based on the transmission mode allows for the three prior-art spreaders of FIG. 1 to be replaced by a single, less expensive spreader.

The present invention encompasses a method for spreading data in a spread-spectrum communication system. The method comprises the steps of determining a current mode of operation and spreading data with a time-varying spreading code that varies at a symbol rate when operating in a first mode of operation, otherwise spreading data with a non varying spreading code.

The present invention additionally encompasses a method for despreading data in a spread-spectrum communication system. The method comprises the steps of determining a current mode of operation and despreading data with a spreading code that is held constant for a plurality of symbols when operating in a first mode, otherwise despreading the data with a third despreading code that varies at the symbol rate.

The present invention additionally encompasses an apparatus for spreading data in a spread-spectrum communication system. The apparatus comprises a first spreader having a current mode of operation as an input and outputting spread data based on the current mode of operation. In the preferred embodiment of the present invention the spread data is spread with a spreading code that varies at a symbol rate when operating in a first mode of operation, otherwise the spread data is spread with a non varying spreading code.

Finally, the present invention encompasses an apparatus for despreading data in a spread-spectrum communication system. The apparatus comprises a first despreader having a current mode of operation as an input and outputting despread data based on the current mode of operation. In the preferred embodiment of the present invention the despread data is despread with a spreading code that is held constant for a plurality of symbols when operating in the first mode, otherwise despread with a third spreading code that varies at the symbol rate.

In the preferred embodiment of the present invention a transmitter and receiver are provided that utilize a direct-spread RF section for multi-carrier transmission. Prior to describing a transmitter and receiver in accordance with the preferred embodiment of the present invention the following text and equations are provided to set the necessary background for utilization of the preferred embodiment of the present invention.

In a multi-carrier transmission, the resulting signal (Y) can be represented as:

Y=X ₁ e ^(j(ω) ^(_(o)) ^(−Δ)t) +X ₂ e ^(jω) ^(_(o)) ^(t) +X ₃ e ^(j(ω) ^(_(o)) ^(+Δ)t)=(X ₁ e ^(−jΔt) +X ₂ +X ₃ e ^(jΔt))e ^(jω) ^(_(o)) ^(t),  (1)

where Y and X₁, X₂, X₃ are complex I+jQ quadrature signals. After up-conversion, the signal can be defined as:

Y=(I+jQ)e ^(jω) ^(_(o)) ^(t)

where ω_(o) is 2π/f₀, f₀ is the center frequency of an equivalent direct spread signal, Δ is the frequency offset between the carriers and t is time. Expressing the exponent in equation (1) as sine and cosine equivalents, equation (1) becomes:

I+jQ=X ₁(cos(−Δt)+j sin(−Δt))+X ₂ +X ₃(cos(Δt)+j sin(Δt)),

where Δ is the frequency offset between the carriers, which in the preferred embodiment is 1.5 MHz. Switching to the real and imaginary components

I+jQ=(I ₁ +jQ ₁)(cos(−Δt)+j sin(−Δt))+(I ₂ +jQ ₂)+(I ₃ +jQ ₃)(cos(Δt)+j sin(Δt)).

Multiplying and combining real and imaginary:

I ₁ cos(Δt)+Q ₁ sin(Δt)+j(Q ₁ cos(Δt)−I ₁ sin(Δt))+I ₂ +jQ ₂ +I ₃ cos(Δt)−Q ₃ sin(Δt)+j(Q ₃ cos(Δt)+I ₃ sin(Δt))=I+jQ.

Deriving the I and Q components of the combined multi-mode transmission:

I=(I ₁ +I ₃)cos(Δt)+I ₂+(Q ₁ −Q ₃)sin(Δt)  (2)

Q=(Q ₁ +Q ₃)cos(Δt)+Q ₂+(I ₃ −I ₁)sin(Δt).  (3)

Thus, the I and Q components of a multi-carrier signal can be represented as shown in equations (2) and (3). In the preferred embodiment of the present invention equations (2) and (3) are utilized to provide a multi-mode transmitter and receiver that uses a direct-spread RF section for multi-carrier transmission.

Turning now to the drawings, wherein like numerals designate like components, FIG. 2 is a block diagram of multi-mode transmitter front end 200 in accordance with the preferred embodiment of the present invention. In the preferred embodiment of the present invention, front end 200 has replaced the prior-art spreaders 105 with spreading circuitry 202. During operation, data stream 210 is received by Walsh spreader 201 at a particular symbol rate. Data stream 210 typically includes convolutionally encoded and interleaved voice converted to data by a vocoder, pure data, or a combination of the two types of data. Spreader 201 multiplies each data symbol within data stream 210 by an orthogonal code. In the preferred embodiment of the present invention, a 64-ary or 256-ary Walsh code is utilized for direct and multi-carrier spreading, respectively, however in alternate embodiments of the present invention, any Mary Walsh code may be utilized. In M-ary orthogonal encoding, interleaved and scrambled data symbols are each replaced by a M symbol orthogonal code. These orthogonal codes preferably correspond to Walsh codes from a M×M Hadamard matrix wherein a Walsh code is a single row or column of the matrix. Spreader 201 repetitively outputs a Walsh code 222 which converts a single input data symbol to a series of chips. In the preferred embodiment of the present invention Walsh code 222 is varied at the symbol rate during multi-carrier transmission, and is held constant (i.e., a single Walsh code) during direct-spread transmission.

More particularly, a current mode of operation is provided to Walsh spreader 203, and based on the current mode of operation, spreader 203 either varies a Walsh code at a symbol rate, or holds the Walsh code constant. During multi-carrier transmission a first symbol within data stream 210 is spread with a first Walsh code, while symbols immediately preceding and following the first symbol is spread by a another, differing Walsh code. Additionally, in the preferred embodiment of the present invention during multi-carrier transmission all Walsh codes comprise 256 chips. During direct-spread transmission, a single Walsh code is utilized to spread all symbols within data stream 210. In the preferred embodiment of the present invention, the Walsh code utilized for direct-spread transmission comprises 64 chips.

The sequence of Walsh codes exiting spreader 201 is further scrambled by a pair of PN codes 224 to generate an I-channel and Q-channel spread sequence.

In the preferred embodiment of the present invention, PN codes comprise a time varying code that is utilized to distinguish transmission from a particular cell. All forward channels in a communication system utilize the same PN code, however, the code is shifted in time between cells within the communication system. In the preferred embodiment of the present invention, PN code 224 is held constant for three Walsh code periods during multi-carrier transmission, and is not held constant during direct-spread transmission. More particularly, during multicarrier transmission, three consecutive Walsh codes share the same time-varying PN code, as if they were transmitted simultaneously, while direct-spread transmission varies the PN code with every Walsh code.

The I-channel and Q-channel code spread sequences are passed to switch 214 where they are directed based upon the current mode of operation. For direct-spread transmission, demultiplexer 209 is bypassed, and the current I and Q streams are output to the transmitter back end. However, for multi-carrier transmission, the I and Q stream is demultiplexed into multiple I and Q components so that three consecutive I and Q streams are sent to a transmitter back end simultaneously. In the preferred embodiment of the present invention, each I and Q component of the simultaneous streams (e.g., I₁, I₂, I₃, Q₁, Q₂, Q₃) represents the baseband portion of a multi carrier signal. For example, the I₁ and Q₁ streams contain data that, for prior-art systems, would be broadcast within a single frequency band in a multicast transmission. Thus, in an n-carrier multicast system, the I_(i) and Q_(i) streams contain data representing every i+3 k symbol from data stream 210, where k is an integer and i is an integer between 1 and n.

The preferred embodiment of the present invention utilizes spreading circuitry 202, having Walsh codes that vary at the symbol rate, or are held constant, based on a transmission mode. Additionally, spreading circuitry 202 utilizes a PN code that is held constant for multiple Walsh codes, or is allowed to vary, based on the transmission mode. The utilization of such spreading circuitry allows for the three prior-art spreaders of FIG. 1 to be replaced by a single, less expensive spreader.

FIG. 3 is a block diagram of transmitter back end 300 utilized during multi-carrier transmission in accordance with the preferred embodiment of the present invention. In the preferred embodiment of the present invention switch 214 directs each I an Q component to transmitter back end 300 during transmission. As shown, transmitter back end 300 comprises summers 301-307, mixers 309-315, summers 317 and 319, filters 321-323, D/A converters 325-327, filter 331, and mixers 333. During multi-carrier transmission, multiple I and Q components that were output from receiver front end 200 enters receiver back end 300. Receiver back end 300 outputs the I and Q components of the transmitted signal as defined in equations (2) and (3). More particularly, I₁ is summed with I₃ by summer 301, Q₃ is subtracted from Q₁ by summer 303, Q₁ is added to Q₃ by summer 305, and I₃ is subtracted from I₁ by summer 307. The outputs of summers 301 and 305 enter mixers 309 and 313, respectively, where they are mixed by cos(Δt). Similarly, the outputs of summers 303 and 307 enter mixers 311 and 315, respectively, where they are mixed by sin(Δt). The output from mixers 309 and 311 enter summer 317 where they are summed along with the I₂ component, resulting in signal 318. The output from mixers 313 and 315 enter summer 319 where they are summed along with the Q2 component, resulting in signal 320.

Signals 318 and 320 enter filters 321 and 323 respectively, where they are filtered. During direct-spread transmission, the I and Q stream bypasses summers 301-307, mixers 309-315, and summers 317-319, and enters filters 321 and 323 respectively. In the preferred embodiment of the present invention filters 321 and 323 are filters that provide the correct band shape for the appropriate spreading factor as defined in RTT cdma2000 proposals. The outputs from filters 321 and 323 are determined by specification and the nature of the combined signals. In the preferred embodiment of the present invention the total bandwidth is 3/2Δ, or 2.25 MHz. The resulting filtered signals are D/A converted by converters 325-327, resulting in I and Q components similar to those in equations (2) and (3). The I and Q components are then mixed to frequency by mixers 333, and radiated by an antenna (not shown) to complete transmission of data stream 210.

As is evident, the transmitter back end 300 in accordance with the preferred embodiment of the present invention utilizes much of the same circuitry for both direct-spread, and multi-carrier transmission. More particularly, the three signal paths of prior-art transmitter 100 (consisting of six low-pass filters, six D/A converters, six mixers) have been replaced by a single signal path (comprising filters 321-323, D/A converters 325-327, and mixers 333).

FIG. 4 is a block diagram of multi-mode receiver front end 400 in accordance with the preferred embodiment of the present invention. During operation, signal Y is transmitted in either a multi-carrier, or direct-spread format. For both formats, mixers 401 downconvert, and AID converters 405 digitally convert the I and Q signal stream. In the preferred embodiment of the present invention switch 437 serves to route the I and Q digital stream based on the current mode of operation. In particular during direct-spread reception, switch 437 simply routes the digital stream to a receiver back end, without further processing. During multi-carrier reception, switch 437 routes the I and Q digital stream to signal extractors 431 and 433, as well as low-pass filter 435.

In the preferred embodiment of the present invention signal extractors 431 and 433 comprise mixers 407-421 and summers 423-429. During operation the I digital stream is mixed with cos(Δt) by mixers 407 and 415. Additionally the I digital stream is mixed with sin(Δt) by mixers 413 and 421. Similarly, the Q digital stream is mixed with cos(Δt) by mixers 411 and 419, and mixed with sin(Δt) by mixers 409 and 417. The output from mixer 409 is subtracted from the output of mixer 407 by summer 423, and the outputs from mixers 411 and 413 are added by summer 425. Similarly, the output from mixer 421 is subtracted from the output of mixer 419 by summer 429, and the outputs from mixers 415 and 417 are added by summer 427. The outputs from summers 423-425 are filtered by filter 439, resulting in the I₁ and Q₁ components of the transmitted signal (Y). Similarly, the outputs from summers 427-429 are filtered by filters 443, resulting in the I₃ and Q₃ components of the transmitted signal (Y). The I₂ and Q₂ components of the transmitted signal (Y) are obtained by directing the I and Q digital stream through filters 441. The I₁, I₂, I₃, Q₁, Q₂, and Q₃ streams are directed to a receiver back end as shown in FIG. 5.

FIG. 5 is a block diagram of multi-mode receiver back end 500 in accordance with the preferred embodiment of the present invention. During operation, switch 514 has a current receive mode as an input, and serves to direct the de-multiplexed multi-carrier path, or the direct-spread path to despreading circuitry 502. The I channel and Q channel spread sequence enters despreading circuitry 502 where it is descrambled by a pair of PN codes 524. In the preferred embodiment of the present invention, PN code 524 is held constant for three Walsh code periods during multi-carrier reception, and is varies at the symbol rate during direct-spread reception. More particularly, during multi-carrier reception, three consecutive Walsh codes share the same time-varying PN code, as if they were received simultaneously, while direct-spread reception varies the PN code with every Walsh code. The resulting despread signal is then provided to Walsh despreader 503.

A current mode of operation is provided to Walsh despreader 503, and based on the current mode of operation, despreader 503 either varies a Walsh code at a symbol rate, or holds the Walsh code constant. During multi-carrier reception a first symbol within the data stream will be despread with a first Walsh code (or its inverse), while symbols immediately preceding and following the first symbol will be despread by a second, differing Walsh code (or its inverse). Additionally, in the preferred embodiment of the present invention during multi-carrier reception all Walsh codes utilized comprise 256 chips. During direct-spread reception, a single Walsh code (or its inverse) is utilized to despread all symbols within the data stream . In the preferred embodiment of the present invention, the Walsh code utilized for direct-spread reception comprises 64 chips.

FIG. 6 is a flow chart illustrating operation of the transmitter of FIG. 2 and FIG. 3 in accordance with the preferred embodiment of the present invention. The logic flow begins at step 601 where it is determined if a current mode of operation is a multi-carrier mode of operation. In the preferred embodiment of the present invention, the current mode of operation can be either a direct-spread or a multi-carrier mode of operation. Next, data stream 210 is received by a first spreader (Walsh spreader 201) and is spread with a time-varying spreading code that varies at a symbol rate (step 603) when the transmitter is operating in a first mode of otherwise data stream 210 is spread with a non varying spreading code (step 604). In particular, during multi-carrier operation data stream 210 is spread with a Walsh code that varies at a symbol rate when the transmitter is operating in a multi-carrier mode, and spread with a non-varying Walsh code when the transmitter is operating in a direct-spread mode of operation. Next, the spread data is further spread with a second spreading code (step 605) that is held constant for a plurality of symbols when operating in the first mode, otherwise the spread data is further spread with a third spreading code (step 606) that varies at the symbol rate. More particularly, the spread data is further spread with a PN code that is held constant for three symbol periods when operating in a multi-carrier mode, otherwise the spread data is further spread with a time-varying PN code that varies at the symbol rate.

Continuing, at steps 607 and 608, a plurality of I and Q components, representative of signal 210 is received at receiver back end 300. If receiver back end 300 is operating in a direct-spread mode, the I and Q components are simply filtered and D/A converted (step 609). However, if receiver back end 300 is operating in a multi-carrier mode, then at step 610 multiple I and Q components are summed and subtracted from each other and mixed with sine and cosine functions, forming signals 318 and 320. In particular I₁ is summed with I₃ by summer 301, Q₃ is subtracted from Q₁ by summer 303, Q₁ is added to Q₃ by summer 305, and I₃ is subtracted from I₁ by summer 307. The outputs of summers 301 and 305 enter mixers 309 and 313, respectively, where they are mixed by cos(Δt). Similarly, the outputs of summers 303 and 307 enter mixers 311 and 315, respectively, where they are mixed by sin(Δt). The output from mixers 309 and 311 enter summer 317 where they are summed along with the I₂ component, resulting in signal 318. The output from mixers 313 and 315 enter summer 319 where they are summed along with the Q₂ component, resulting in signal 320. Finally, at step 611 the two signals (signals 318 and 320) are filtered and D/A converted.

FIG. 7 is a flow chart illustrating operation of the receiver of FIG. 4 and FIG. 5 in accordance with the preferred embodiment of the present invention. The logic flow begins at step 701 where it is determined if a current mode of operation is a multi-carrier mode of operation. In the preferred embodiment of the present invention, the current mode of operation can be either a direct-spread or a multi-carrier mode of operation. If, at step 701 it is determined that the current mode of operation is not a multi-carrier mode of operation, then the logic flow continues to step 705, otherwise the logic flow continues to step 703 where the I and Q streams are mixed with sine and cosine functions, summed, and subtracted from each other as described above with reference to FIG. 4. In particular, the I digital stream is mixed with cos(Δt) by mixers 407 and 415. Additionally the I digital stream is mixed with sin(Δt) by mixers 413 and 421. Similarly, the Q digital stream is mixed with cos(Δt) by mixers 411 and 419, and mixed with sin(Δt) by mixers 409 and 417. The output from mixer 409 is subtracted from the output of mixer 407 by summer 423, and the outputs from mixers 411 and 413 are added by summer 425. Similarly, the output from mixer 421 is subtracted from the output of mixer 419 by summer 429, and the outputs from mixers 415 and 417 are added by summer 427. The outputs from summers 423425 are filtered by filter 439, resulting in the I₁ and Q₁ components of the transmitted signal (Y). Similarly, the outputs from summers 427-429 are filtered by filters 443, resulting in the I₃ and Q₃ components of the transmitted signal (Y). The I₃ and Q₂ components of the transmitted signal (Y) are obtained by directing the I and Q digital stream through filters 441.

Continuing, based on the current mode of operation the I and Q data is then despread with a spreading code (step 707) that is held constant for a plurality of symbols when operating in the first mode, or the data is despread with a spreading code (step 705) that varies at the symbol rate. More particularly, the data is despread with a PN code that is held constant for three symbol periods when operating in a multi-carrier mode, otherwise the data is despread with a time-varying PN code that varies at the symbol rate.

Based on the current mode of operation, the despread data is either further despread with a time-varying code that varies at a symbol rate (step 711) when the transmitter is operating in a first mode of operation, otherwise the data stream is further despread with a non varying spreading code (step 713). In particular, during multi-carrier operation despread data is further despread with a Walsh code that varies at a symbol rate when the receiver is operating in a multi-carrier mode, and further despread with a non-varying Walsh code when the receiver is operating in a direct-spread mode of operation.

While the invention has been particularly shown and described with reference to a particular embodiment, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention. 

What is claimed is:
 1. A method for despreading, data in a spread-spectrum communication system, the method comprising the steps of: determining a current mode of operation; despreading data with a spreading code that is held constant for a plurality of symbols when operating in a first mode, otherwise despreading the data with a third despreading code that varies at the symbol rate; and further despreading the data with a second despreading code that varies at a symbol rate when operating in the first mode of operation, otherwise dispreading data with a non varying spreading code.
 2. The method of claim 1 further comprising the step of further despreading the data with a Walsh code that varies at a symbol rate when operating in a first mode of operation, otherwise despreading data with a non varying Walsh code.
 3. The method of claim 1 wherein the step of despreading data with the despreading code comprises the step of despreading data with a Pseudo-Noise (PN) code that is held constant for a plurality of symbols when operating in the first mode, otherwise further despreading the data with a PN code that varies at the symbol rate.
 4. An apparatus for despreading data in a spread-spectrum communication system, the apparatus comprising a first despreader having a current mode of operation as an input and outputting despread data based on the current mode of operation, wherein the despread data is despread with a spreading code that is held constant for a plurality of symbols when operating in the first mode, otherwise despread with a third spreading code that varies at the symbol rate, a second despreader despreads data with a Walsh code that varies at a symbol rate when operating in a first mode of operation, otherwise despreads data with a non varying Walsh code.
 5. The apparatus of claim 4 further comprising a second spreader having despread data as an input and outputting further despread data, wherein the further despread data is despread with a second spreading code that varies at a symbol rate when operating in a first mode of operation, otherwise the despread data is further despread with a non varying spreading code.
 6. The apparatus of claim 4 wherein the first despreader despreads the data with a Pseudo-Noise (PN) code that is held constant for a plurality of symbols when operating in the first mode, otherwise varies at the symbol rate.
 7. The apparatus of claim 4 wherein the current mode of operation comprises a direct-spread mode of operation or a multi-carrier mode of operation. 